(function (Cofe, Spine, $) {

    var Models = Cofe.Models;
    var Folder = Spine.Model.setup("Folder",  //Models name
            ["type", "time", "path", "hasfiles", "hassubfolders"]);  //Models attributes.
    
    Folder.extend(Cofe.Models.Entry);

    Folder.include({
        init: function (data) {
            this.initCommonProps(data);            
            this.hassubfolders = data.hassubfolders;
            this.hasfiles = data.hasfiles;
            //console.log("Folder created:" + this.path);
        }
    });

    if (typeof exports !== "undefined") {
        Models.Folder = exports;
    } else {
        Models.Folder = Folder
    }

})(Cofe, Spine, Spine.$);
